PhysicsClient Class Reference

#include <PhysicsClient.h>

Inheritance diagram for PhysicsClient:

CarPhysics OtherPhysicalObjects List of all members.

Public Member Functions

 PhysicsClient ()
virtual ~PhysicsClient ()
bool init (dWorldID world, dSpaceID space, dSpaceID envSpace)
virtual double update (double step)=0
virtual void odeDraw ()=0
virtual void setCollusion ()

Protected Attributes

dWorldID _world
dSpaceID _space
dSpaceID _envSpace

Detailed Description

PhysicsClient.h interface for the PhysicsClient class. abstract base class for inheriting physics classes

Definition at line 5 of file PhysicsClient.h.


Constructor & Destructor Documentation

PhysicsClient::PhysicsClient (   ) 
 

A constructor. give default values to physical world and space.

Definition at line 1 of file PhysicsClient.cpp.

PhysicsClient::~PhysicsClient (   )  [virtual]
 

A destructor.

Definition at line 9 of file PhysicsClient.cpp.


Member Function Documentation

bool PhysicsClient::init (  dWorldID  world,
dSpaceID  space,
dSpaceID  envSpace
) 
 

a normal member taking three arguments and returning bool.

Parameters:
world is the world id of the physical world that the client will be registered in.
space is the space id of the physical space that the client will be registered in.
envSpace is the space id of the physical space that the client will be registered in.
Returns:
true if successful this function is called by the PhysicsServer for each registered client to set its world,space and environment space

Definition at line 14 of file PhysicsClient.cpp.

References _envSpace, _space, and _world.

Referenced by PhysicsServer::registerClient().

virtual void PhysicsClient::odeDraw (   )  [pure virtual]
 

A pure virtual member.

Implemented in CarPhysics, and OtherPhysicalObjects.

virtual void PhysicsClient::setCollusion (   )  [inline, virtual]
 

A virtual member.

Reimplemented in OtherPhysicalObjects.

Definition at line 43 of file PhysicsClient.h.

virtual double PhysicsClient::update (  double  step  )  [pure virtual]
 

A pure virtual member.

Parameters:
step a double argument defines the worldstep amount.
Returns:
double.

Implemented in CarPhysics, and OtherPhysicalObjects.


Member Data Documentation

dSpaceID PhysicsClient::_envSpace [protected]
 

a protected variable. geometries that are considered part of the environment.

Definition at line 60 of file PhysicsClient.h.

Referenced by init().

dSpaceID PhysicsClient::_space [protected]
 

a protected variable. the final frontier.

Definition at line 55 of file PhysicsClient.h.

Referenced by OtherPhysicalObjects::create(), CarPhysics::create(), init(), and CarPhysics::update().

dWorldID PhysicsClient::_world [protected]
 

a protected variable. the world we live in.

Definition at line 43 of file PhysicsClient.h.

Referenced by OtherPhysicalObjects::create(), CarPhysics::create(), init(), and CarPhysics::update().


The documentation for this class was generated from the following files:
Generated on Sun May 28 18:54:14 2006 for TraffEdu by  doxygen 1.4.6-NO